<?php $this->headTitle($this->titolo) ?>

<h2><?php echo $this->titoloCategoria; ?></h2>

<?php foreach ($this->propostas as $proposta): ?>
    <div class="box">
        <h3><a href="<?php echo '/proposta/' . $proposta->propIdent; ?>">
                <?php echo $proposta->propTitolo; ?>
            </a>
        </h3>
        <!-- Foto -->
        <?php foreach ($proposta->getFotosOfProposta() as $foto): ?>
            <a href="<?php echo $foto->fotoPath; ?>" rel="lightbox[<?php echo $proposta->propTitolo; ?>]" title="<?php echo $foto->fotoTitle; ?>">
                <?php if("si" === $foto->isDefault): ?>
                    <img src="<?php echo $foto->fotoPath; ?>" height="100" width="150" />
                <?php endif; ?>
            </a>
        <?php endforeach; ?>
        <!-- Fine Foto -->
        <h6><?php echo $proposta->propIntro; ?></h6>
    </div>
    <!-- Links -->
    <div class="links">
        <a href="<?php echo '/proposta/' . $proposta->propIdent; ?>">Leggi tutto.</a>
    </div>
    <!-- Fine Links -->
<?php endforeach; ?>
